<%-- <%@page import="java.util.ArrayList"%>
<%@page import="com.wanmait.shoppingsys.util.ManagePager"%>
<%@page import="com.wanmait.shoppingsys.vo.Specialty"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
String path = request.getServletContext().getContextPath();
%>
<jsp:include page="/manageinc/header.jsp"></jsp:include>
<section>
<h2>删减信息列表</h2>
<table width="100%" border="1">
<th width="100">序号</th>
<th>物品</th>
<th>价格</th>
<th>城市</th>
<th>操作</th>
<%
ManagePager managepager=(ManagePager)request.getAttribute("managerpager");
ArrayList<Specialty> specialtys = (ArrayList<Specialty>)managepager.getData();
for(int i=0;specialtys!=null&&i<specialtys.size();i++)
{
	 Specialty specialty=specialtys.get(i); 
%>
<tr>
<td><%=i+1%></td>
<td><%=specialty.getName()%></td>
<td><%=specialty.getPrice() %>
<td><%=specialty.getCity().getName()%></td>
<td><a href="/ShoppingSys/SpecialtyManageController?action=delete&specialtyId=<%=specialty.getId()%>">删除</a></td>
</tr>
<%
}
%>
</table>
<div class="pagenation">
<%if(managepager.hasPrev()){ %>
<a href="<%=path%>/SpecialtyManageController?action=deletelist&pageNum=<%=managepager.getPageNum()-1%>">&lt;&lt;</a>
<%} %>
<%
	for(int i=1;i<=managepager.getPageCount();i++){
		%>
<a href="<%=path%>/SpecialtyManageController?action=deletelist&pageNum=<%=i%>"  class="<%=managepager.getPageNum()==i?"cur":"" %>"  ><%=i %></a>
	<%
	}
	%>
<%if(managepager.hasNext()) {%>
<a href="<%=path%>/SpecialtyManageController?action=deletelist&pageNum=<%=managepager.getPageNum()+1%>">&gt;&gt;</a>
<%} %>	

</div> 
</section>
<jsp:include page="/manageinc/footer.jsp"></jsp:include> --%>